<%--
  Created by IntelliJ IDEA.
  User: kkk
<%--
  Created by IntelliJ IDEA.
  User: kkk
  Date: 2022/11/8
  Time: 10:49
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
    <script src="${pageContext.request.contextPath}/statics/layui/layui.js"></script>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/statics/layui/css/layui.css">
</head>
<body>
<%--    证件照：<img width="100px" height="120px" src="${pageContext.request.contextPath}/statics/upload/${sysUser.idpicpath}"/>--%>

<fieldset class="layui-elem-field layui-field-title" style="margin-top: 50px;">
    <legend>用户详情</legend>
</fieldset>

<form class="layui-form" action="" lay-filter="example">
    <div class="layui-form-item">
        <label class="layui-form-label">账号</label>
        <div class="layui-input-block">
            <input type="text" name="account" lay-verify="title" readonly value="${sysUser.account}" autocomplete="off"
                   class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">真实姓名</label>
        <div class="layui-input-block">
            <input type="text" name="realName" readonly value="${sysUser.realName}" autocomplete="off"
                   class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">性别</label>
        <div class="layui-input-block">
            <input type="text" name="sex" readonly value="${sysUser.sex==1? "女":"男"}" autocomplete="off"
                   class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">出生日期</label>
        <div class="layui-input-block">
            <input type="text" name="birthday" readonly value="${sysUser.birthday}" autocomplete="off"
                   class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">电话</label>
        <div class="layui-input-block">
            <input type="text" name="phone" readonly value="${sysUser.phone}" autocomplete="off"
                   class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">地址</label>
        <div class="layui-input-block">
            <input type="text" name="address" readonly value="${sysUser.address}" autocomplete="off"
                   class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">角色</label>
        <div class="layui-input-block">

            <input type="text" name="roleId" readonly value="
                <c:if test="${sysUser.roleId==1}">超级管理员</c:if>
                <c:if test="${sysUser.roleId==2}">店长</c:if>
                <c:if test="${sysUser.roleId==3}">店员</c:if>" autocomplete="off" class="layui-input">
        </div>
    </div>
</form>
</body>
</html>
